<template>
	<view class="page">
		
		<view v-for="(item,index) in list" :key="index" class="list" @click="edit(item)" v-if="item.njDate && item.bxDate">
			<view  style="font-weight: bold;font-size: 34rpx;">
				{{item.cn}}
			</view>
			
			<view class="u-margin-top-20 u-margin-bottom-20 $u-type-info">
				年审时间:{{item.njDate}}
			</view>
			<view class="$u-type-info">
				年检时间:{{item.bxDate}}
			</view>
		</view>
		
		
		<view style="position: fixed;bottom: 30rpx;width: 100%;left: 0;">
			<u-button @click="submit" :custom-style="{background:'#1B8AF6',color:'#fff',width:'90%'}">添加</u-button>
		</view>
		<u-loadmore :status="status"  />
	</view>
</template>

<script>
	
	import loader from '@/common/loadPage.js';

	export default{
		mixins: [loader],
		data(){
			return{
				list: [],
				initial: {
					geturl: "/api/user/cn",
					parm: {
						state: 0,
						order_type:3
					},
					isPage: true
				},
			}
		},
		methods:{
			submit(){
				uni.navigateTo({
					url:'./index'
				})
			},
			edit(item){
				uni.navigateTo({
					url:"./index?txt="+JSON.stringify(item)  
				})
			}
		},
		onShow() {
			this.getGoods()
		}

	}
</script>

<style>
	.page{
		background: #F1F1F1;
		min-height: 100vh;
		display: inline-block;
		width: 100%;
	}
	.list{
		background: #fff;
		width: 90%;
		border-radius: 10rpx;
		margin:20rpx auto;
		padding: 20rpx;
	}
</style>
